const std = @import("std");
const c = @import("../component.zig");

// NOTE: maybe use this for visual debugging: https://www3.nd.edu/~dthain/courses/cse20211/fall2013/gfx/
pub fn debugSystem(es: *const c.EntityStorage, ps: *const c.PositionStorage, vs: *const c.VelocityStorage) anyerror!void {
    var it = es.iter(.{.Position, .Velocity});
    while (it.next()) |e| {
        std.debug.warn("ENTITY {} POSITION {d:.5}\n", .{e, ps.get(e)});
        std.debug.warn("ENTITY {} VELOCITY {d:.5}\n", .{e, vs.get(e)});
    }
}
